import os


def get_patch_file(path):
    curr_list = os.listdir(path)
    file_list = []
    for file in curr_list:
        f = os.path.join(path, file)
        if os.path.isfile(f):
            file_list.append(file)
        elif os.path.isdir(f):
            file_list.extend(get_patch_file(f))

    return file_list
